<%@ page language="java" pageEncoding="UTF-8"%>
<div ng-controller="BlogRecommendShowController">
	<div class="panel panel-default">
		<div class="panel-heading">
			自荐管理
		</div>
		<div class="panel-body">
			<table class="table table-hover">
				<thead>
					<tr>
						<th>
							ID
						</th>
						<th>
							标题
						</th>
						<th>
							申请时间
						</th>
						<th>
							操作
						</th>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="recommend in recommends.data">
						<td>
							{{recommend.id}}
						</td>
						<td>
							<a ng-href="#/blog/{{recommend.bid}}" target="_blank">{{recommend.title}}</a>
						</td>
						<td>
							{{recommend.create_time | formatDate}}
						</td>
						<td>
							<button type="button" class="btn btn-success btn-xs" ng-click="pass(recommend)"><i class="glyphicon glyphicon-check"></i> 通过</button>
							<button type="button" class="btn btn-danger btn-xs" ng-click="refuse(recommend)"><i class="glyphicon glyphicon-remove"></i> 拒绝</button>
						</td>
					</tr>
				</tbody>
			</table>
			
			<paginate page-count="recommends.page_count" sum="recommends.data_sum" pn="recommends.pn" click="find"></paginate>
		</div>
	</div>
</div>